projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49ac732
)
GtkWidget: Set style context's screen before the widget_path.
author
Carlos Garnacho
<carlosg@gnome.org>
Sat, 11 Sep 2010 10:45:42 +0000
(12:45 +0200)
committer
Carlos Garnacho
<carlosg@gnome.org>
Sat, 4 Dec 2010 14:38:14 +0000
(15:38 +0100)
This is so the style context has all necessary information before
triggering a style change on setting the path.
gtk/gtkwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidget.c
b/gtk/gtkwidget.c
index 3673fea87884461eaf5e0f729ab34de750046aa1..6bc665c17f592c586161e15e2158b0b5fc9800de 100644
(file)
--- a/
gtk/gtkwidget.c
+++ b/
gtk/gtkwidget.c
@@
-13402,13
+13402,12
@@
gtk_widget_get_style_context (GtkWidget *widget)
gtk_style_context_add_provider (context,
GTK_STYLE_PROVIDER (settings),
GTK_STYLE_PROVIDER_PRIORITY_SETTINGS);
+ gtk_style_context_set_screen (context,
+ gtk_widget_get_screen (widget));
path = gtk_widget_get_path (widget);
gtk_style_context_set_path (context, path);
gtk_widget_path_free (path);
-
- gtk_style_context_set_screen (context,
- gtk_widget_get_screen (widget));
}
return context;